package com.learner.common.exception;

/**
* @author ice2020x
* @Date: 2023/3/7
* @Description: 
**/
public interface IRestStatus {
	/**
	 * the status codes of per restful request.
	 *
	 * @return 20xxx if succeed, 40xxx if client error, 50xxx if server side crash.
	 */
	int code();

	/**
	 * status enum name
	 * @return status enum name
	 */
	String name();

	/**
	 * message summary
	 * @return message summary
	 */
	String message();


}
